//
//  OnlineUserInfo.m
//  RSW.IOS
//
//  Created by zhaiqiuqiu on 16/12/14.
//  Copyright © 2016年 com.xtion.crm. All rights reserved.
//

#import "OnlineUserInfo.h"

@implementation OnlineUserInfo

static XMSQueueDictionary *s_jsonPair;

+(void)initialize
{
    if(s_jsonPair == nil)
    {
        XMSQueueDictionary *qd = [[XMSQueueDictionary alloc] initWithStoreClass:[CObjTransformPropertyPair class]];
        [qd addKey:@"UserID" value:@"userNumber"];
        [qd addKey:@"LoginName" value:@"loginName"];
        [qd addKey:@"Name" value:@"userName"];
        [qd addKey:@"Photo" value:@"logoURL"];
        
        [qd addKey:@"QQ" value:@"qq"];
        [qd addKey:@"TelNo" value:@"tel"];
        [qd addKey:@"Email" value:@"email"];
        [qd addKey:@"Mobile" value:@"mobilePhone"];
        
        [qd addKey:@"DeptID" value:@"departmentId"];
        [qd addKey:@"DeptName" value:@"departmentName"];
        
        [qd addKey:@"DeptGroupID" value:@"deptGroupId"];
        [qd addKey:@"DeptGroupName" value:@"deptGroupName"];
        
        [qd addKey:@"Job" value:@"positionJob"];
        s_jsonPair = [CTransformHTTPRESTObj registerJSONObjectClass:[OnlineUserInfo class] JSONKeyPair:qd];
    }
}

+ (XMSQueueDictionary *)JSONObjectProperty:(NSArray *)JSONKeys
{
    return [CTransformHTTPRESTObj JSONObjectMap:s_jsonPair propertyWithJSONKey:JSONKeys];
}
@end

